package com.gymmsystem.GYMMSystem.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("coaches")
public class Coaches {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("name")
    @JsonProperty("name")
    private String name;

    @TableField("phone")
    @JsonProperty("phone")
    private String phone;

    @TableField("specialty")
    @JsonProperty("specialty")
    private String specialty;

    @TableField("experience")
    @JsonProperty("experience")
    private Integer experience;

    @TableField("image_url")
    @JsonProperty("imageUrl")
    private String imageUrl;

    @TableField(value = "created_at", fill = FieldFill.INSERT)
    @JsonProperty("createdAt")
    private LocalDateTime createdAt;
}